/*
******************************
* Copyright by Maxic Tech                                                      *
* All rights are reserved.  
******************************
*/


#ifndef __MAXIC_MT320X_ALS_H__
#define __MAXIC_MT320X_ALS_H__


#include "maxic_mt320x.h"

int32_t mt320x_read_als(struct mt320x_chip *mt320x_obj);
int32_t mt320x_get_lux(struct mt320x_chip *mt320x_obj);
int32_t mt320x_als_enable(struct mt320x_chip *mt320x_obj);
int32_t mt320x_set_als_gain(struct mt320x_chip *mt320x_obj, uint16_t gain);
void mt320x_update_als_thresh(struct mt320x_chip *mt320x_obj);
int32_t mt320x_calibrate_als(struct mt320x_chip *mt320x_obj);



#endif
